Skip to main content

revXMLTrees

Type

function

Summary

Returns a list of all XML trees in memory.

Syntax

revXMLTrees()

Description

Use the revXMLTrees function to find out which XML trees have been created, or when you want to perform an action on all the XML trees you're working with.

Each tree ID is the number returned by the revXMLCreateTree or revXMLCreateTreeFromFile function when you created the XML tree.

If the revXMLTrees function encounters an error, it returns an error message starting with "xmlerr".

Important

The revXMLTrees function is part of the XML library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "XML" checkbox is checked.

Examples

revXMLTrees()
if myTree is not among the lines of revXMLTrees() then loadTree myTree

glossary: Standalone Application Settings, standalone application, XML tree, return, LiveCode custom library

keyword: line

library: XML library

command: revXMLDeleteAllTrees

control structure: function

function: revXMLCreateTreeFromFile, revXMLCreateTree

Compatibility and Support

Introduced

LiveCode 2.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?